import _fetch from './request.js'

function getUserList(params) {
    return _fetch({
        url: '/user/list',
        method: 'get',
        params
    })
}

function userStatus(data) {
    return _fetch({
        url: '/user/status',
        method: 'post',
        data
    })
}

function userRemove(data) {
    return _fetch({
        url: '/user/remove',
        method: 'post',
        data
    })
}

function userEdit(data) {
    return _fetch({
        url: '/user/edit',
        method: 'post',
        data
    })
}

function userAdd(data) {
    return _fetch({
        url: '/user/add',
        method: 'post',
        data
    })
}


export {getUserList, userStatus, userRemove, userEdit, userAdd}